]> dgit.raspbian.org Git - gnome-shell.git/commit
ShellAppSystem: Support loading a .desktop file directly
authorColin Walters <walters@verbum.org>
Wed, 5 Aug 2009 15:27:06 +0000 (11:27 -0400)
committerColin Walters <walters@verbum.org>
Sun, 9 Aug 2009 13:53:06 +0000 (09:53 -0400)
commit9bd22dc033caabb086621c0deaec0cc854254ed2
treef22df5731fe5f0227f29fb94f24144fb78c17b2a
parent5064d873bb473f99609e48b9b52844c7b3f0d4e0
ShellAppSystem: Support loading a .desktop file directly

Previously, ShellAppSystem only loaded (and cached) the set of
.desktop files from applications.menu and settings.menu, using
the gnome-menus library.  The ShellAppInfo structure was
a "hidden typedef" for GMenuTreeEntry.

But we need to support loading an arbitrary .desktop file.  Thus,
refactor the ShellAppInfo into a real struct, with a refcount,
and allow it to point to either a GMenuTreeEntry or a GKeyFile.

Also, in the case where we fail to lookup an icon for an
application, ensure we return a 0 opacity texture.
js/ui/appDisplay.js
js/ui/widget.js
src/shell-app-system.c
src/shell-app-system.h